package chatSystem;
/**
 * This class launches the ChatSystem
 */
import gui.WelcomePage;
import network.ChatNI;
import network.Interface.NiController;
import controller.ChatController;
import controller.Interface.GuiController;

/**
 * 
 * @author Christelle SIAGO HAPPI 
 *
 */
public class ChatSystem {

	private GuiController mCtrl;
	private NiController mNi;
	
	/**
	 * @param mCtrl : a controller instance
	 * @param mNi : an instance of ChatNI
	 */
	public ChatSystem() {

		mCtrl = ChatController.getInstance();
		mNi = new ChatNI();

		// TODO setCtrl for mGUI and mNI
		((ChatController) mCtrl).setNi(mNi);
		((ChatNI) mNi).setController(mCtrl);

		new WelcomePage(mCtrl);
	}

	public static void main(String[] args) {

		System.out.println("Display the home page");
		ChatSystem chatSystem = new ChatSystem();

	}
}
